/**
 *  type: 'root-node'
 *    text: ''
 *    children: []
 *  type: 'relation-node'
 *    text: ''
 *    mainColor: '#2970F6'
 *    arrow: 'in' || 'out' // 表示投资方向
 *    children: []
 *  type: 'entity-node'
 *    text
 *    mainColor: '#2970F6'
 *    hasPoint: true
 *    subText: ''
 *    logoType: 'person' || 'company' // 对应tooltip中的logo
 *    tags: { text, riskType } // 对应tooltip中的tag，可以通过riskType调整样式。riskType可传入“good”或“bad”，默认为“good”的样式。
 *    descriptions: [{ label, value }]
 *    children: []
 *  type: 'more-node'
 *    text: ''
 *    subText: ''
 *    hiddenChildren: []
 */

const data = {
  text: '杭州仟金顶信息技术有限公司',
  type: 'root-node',
  children: [
    {
      text: '股东1',
      type: 'relation-node',
      mainColor: 'green',
      arrow: 'in',
      direction: 'left',
      children: [
        {
          text: '王某1',
          type: 'entity-node',
          mainColor: 'green',
          hasPoint: true,
          subText: '[40%]',
          logoType: 'person',
          tags: [
            {
              text: '失信被执行人',
              riskType: 'bad',
            },
            {
              text: '法律诉讼',
              riskType: 'bad',
            },
            {
              text: '股东',
              riskType: 'good',
            },
            {
              text: '对外投资',
              riskType: 'good',
            },
          ],
          descriptions: [{ label: '股权占比', value: '40%' }],
          children: [
            {
              text: '对外投资1',
              type: 'relation-node',
              mainColor: 'orange',
              arrow: 'in',
            },
          ],
        },
        {
          text: '黄某',
          type: 'entity-node',
          mainColor: 'green',
          hasPoint: true,
          subText: '[40%]',
          children: [
            {
              text: '对外投资2',
              type: 'relation-node',
              mainColor: 'orange',
              arrow: 'out',
            },
          ],
        },
        {
          text: '展开',
          type: 'more-node',
          subText: '[1]',
          hiddenChildren: [
            {
              text: '李某',
              type: 'entity-node',
              mainColor: 'green',
              hasPoint: true,
              subText: '[40%]',
            },
          ],
        },
      ],
    },
    {
      text: '股东2',
      type: 'relation-node',
      mainColor: 'blue',
      arrow: 'out',
      direction: 'right',
      children: [
        {
          text: 'A公司',
          type: 'entity-node',
          mainColor: 'blue',
          hasPoint: true,
          subText: '[40%]',
          children: [
            {
              text: '对外投资3',
              type: 'relation-node',
              mainColor: 'red',
              arrow: 'in',
            },
            {
              text: '对外投资4',
              type: 'relation-node',
              mainColor: 'red',
              arrow: 'out',
            },
          ],
        },
        {
          text: 'B公司',
          type: 'entity-node',
          mainColor: 'blue',
          hasPoint: true,
          subText: '[40%]',
        },
        {
          text: '展开',
          type: 'more-node',
          subText: '[1]',
          hiddenChildren: [
            {
              text: 'C公司',
              type: 'entity-node',
              mainColor: 'blue',
              hasPoint: true,
              subText: '[40%]',
            },
          ],
        },
      ],
    },
  ],
}

export default data
